#include <iostream>
#define N 100

using namespace std;

void readintVector(int array[], int elements){
for (int i=0; i<elements; i++){
	cout<<"a["<<i<<"]=";
	cin>>array[i];
	cout<<"\n";}
}

int main(){
int x=0;
int number;
int array[N];
int elements;
cout<<"Type the number of elements you want in the array: ";
cin>>elements;
readintVector(array, elements);
cout<<"Type the number you want to verify if it belongs to the array: ";
cin>>number;
for(int i=0;i<elements; i++){
	if(array[i] == number){
		x=1;}
}
if(x>0){
	cout<<"Number is in the array";
	cout<<"\n";}
else{
cout<<"Number is in not the array";
	cout<<"\n";}

return 0;
}	

